<?php
/**
 * Created by JetBrains PhpStorm.
 * User: GMC
 * Date: 10/3/13
 * Time: 2:20 PM
 * To change this template use File | Settings | File Templates.
 */

class WidgetEndFooter extends CWidget {
    public $results;

    public function init() {
        $this->results = MenuItem::model()->findAll(array(
            'select' => 'name,url',
            'condition' => 'type = 1 and position = 1'
        ));
    }

    public function run() {
        return CWidget::render('widgetEndFooter', array('results' => $this->results));
    }
}